home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Very Best of Atari Inside
/
The Very Best of Atari Inside 1.iso
/
mint
/
mntlib43
/
mntlib
/
cfspeed.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-10-11
|
592b
|
41 lines
/*
Public domain termios cf[get|set][i|o]speed() for the MiNT library
10 October 1993 entropy@terminator.rs.itd.umich.edu -- first attempt
*/
#include <types.h>
#include <termios.h>
speed_t
cfgetispeed(stp)
const struct termios *stp;
{
return stp->_c_ispeed;
}
speed_t
cfgetospeed(stp)
const struct termios *stp;
{
return stp->_c_ospeed;
}
int
cfsetispeed(stp, baudcode)
struct termios *stp;
speed_t baudcode;
{
stp->_c_ispeed = baudcode;
return 0;
}
int
cfsetospeed(stp, baudcode)
struct termios *stp;
speed_t baudcode;
{
stp->_c_ospeed = baudcode;
return 0;
}